<?php 
$catName = FrontendShopCategoryModel::model()->findByPk($rootCat)->title;
$this->breadcrumbs=array(
		'Sản phẩm'=>Yii::app()->createUrl('/product/index'),
		$catName=>Yii::app()->controller->createUrlProductCat($rootCat),
		$data['title']
);
?>
<div id="content" class="product-detail">
<div class="wr-content">
<div class="detail-product">
<div class="product-info">
	<div class="more-detail">
	<script>
	  $(function() {
	    $( "#tabs" ).tabs();
	  });
	  </script>
	  <div id="tabs">
	  <ul>
	    <li><a href="#tabs-1">TỔNG QUAN</a></li>
	    <li><a href="#tabs-2">THÔNG SỐ KỸ THUẬT</a></li>
	    <li><a href="#tabs-3">HÌNH ẢNH VÀ VIDEO</a></li>
	  </ul>
	  <div id="tabs-1">
	    <?php echo $data['description'];?>
	  </div>
	  <div id="tabs-2">
	  	<?php echo $data['description_full'];?>
	  </div>
	  <div id="tabs-3">
	  	<?php echo $data['description_more'];?>
	  </div>
	</div>
	</div>
</div>
<div class="image-product">
	<div class="product-image">
	<a  href='<?php echo Yii::app()->params['shop_url'].'/full/'.$data['image'];?>'>
		<img class="pri-image" src="<?php echo Yii::app()->params['shop_url'].'/l/'.$data['image'];?>" /></a>
	</div>
	<div class="more-image">
		<a onclick="$('#pri-image').attr('src',($('#img1').attr('rel')));return false;" href='<?php echo Yii::app()->params['shop_url'].'/full/'.$data['image'];?>' >
			<img class="m-image" id="img1" width="50" src="<?php echo Yii::app()->params['shop_url'].'/s/'.$data['image'];?>" rel="<?php echo Yii::app()->params['shop_url'].'/l/'.$data['image'];?>"/></a>
		<?php for($i=2; $i<5; $i++):
		$field = 'image'.$i;
		if($data["$field"]!=''):
		?>
			<a onclick="$('#pri-image').attr('src',$('#img<?php echo $i?>').attr('rel'));return false;" href='<?php echo Yii::app()->params['shop_url'].'/full/'.$data["$field"];?>'>
			<img id="img<?php echo $i?>" width="50" src="<?php echo Yii::app()->params['shop_url'].'/s/'.$data["$field"];?>" rel="<?php echo Yii::app()->params['shop_url'].'/l/'.$data["$field"];?>" /></a>
		<?php
		endif;
		endfor;?>
	</div>
</div>
</div>
</div>

<div class="wr-content" style="margin-top: 10px;">
	<?php $this->widget('frontend.widgets.scrollerImages.scrollerImagesWidget', array('numberShow'=>6, 'title'=>'SẢN PHẨM CÙNG LOẠI', 'data'=>$releatProducts));?>
</div>
</div>